﻿/*
*   ruletext
*   author: ronglin
*   create date: 2011.12.28
*/

.vs-ruletext {
	border: 1px solid #CCC;
	float: left;
	width: 250px;
	margin-left: 5px;
}

.vs-ruletext .content {
	height: 255px;
	padding: 5px;
}

.vs-ruletext .content .message {
	color: #000;
}

.vs-ruletext .content .editor {
	position: absolute;
	display: none;
	padding: 1px;
	border: 1px solid #9ecaf6;
	background-color: #fff;
	z-index: 1;
}
.vs-ruletext .content .editor.valid {
	border: 1px solid green;
}
.vs-ruletext .content .editor.warning {
	border: 1px solid red;
}
.vs-ruletext .content .editor input {
	padding: 0px;
	border: 0px;
	margin: 0px;
	outline: 0px;
	width: 100%;
	font-size: 12px;
	font-family: "Verdana" , "Tahoma" , "Arial";
}
.vs-ruletext .content .editor .measure {
	display: none;
	white-space: nowrap;
}
.vs-ruletext .content .editing {
	color: #ccc !important;
}

.vs-ruletext .content .head {
	position: relative;
	display: none;
	margin-bottom: 3px;
}
.vs-ruletext .content .head .brace {
	padding-left: 4px;
	color: #000;
}
.vs-ruletext .content .head .selector {
	color: #555;
	background-repeat: no-repeat;
	background-position: left 3px;
}
.vs-ruletext .content .head .selector.warning {
	padding-left: 12px;
	text-decoration: line-through;
	background-image: url(images/ruletext_item_warning.png);
}

.vs-ruletext .content .foot {
	position: relative;
	display: none;
	margin-top: 3px;
}
.vs-ruletext .content .foot .brace {
	color: #000;
}
.vs-ruletext .content .foot .swap {
	display: inline-block;
	position: absolute;
	width: 14px;
	height: 14px;
	left: 10px;
	top: 2px;
	cursor: pointer;
	background-repeat: no-repeat;
	background-image: url(images/ruletext_swap.gif);
}
.vs-ruletext .content .foot .swapback {
	background-image: url(images/ruletext_swapback.gif);
}

.vs-ruletext .content .body .property {
	border: 0px;
	color: #000;
}
.vs-ruletext .content .body .property .item {
	position: relative;
	line-height: 16px;
	border-width: 1px;
	border-style: solid;
	border-color: transparent;
    word-wrap:break-word;
    word-break:break-all;
}
.vs-ruletext .content .body .property .item span {
	font-size: 12px;
	font-family: "Verdana" , "Tahoma" , "Arial";
}
.vs-ruletext .content .body .property .item.warning span {
}
.vs-ruletext .content .body .property .item.disabled span {
	color: #888;
}
.vs-ruletext .content .body .property .item .move {
	position: absolute;
	left: 2px;
	top: 3px;
	display: none;
	width: 10px;
	height: 10px;
	cursor: move;
	background-image: url(images/ruletext_item_drag.gif);
}
.vs-ruletext .content .body .property .item .status {
	position: absolute;
	left: 14px;
	top: 3px;
	display: none;
	width: 10px;
	height: 10px;
	cursor: pointer;
	background-image: url(images/ruletext_item_enable.png);
}
.vs-ruletext .content .body .property .item.warning .status {
	display: block;
	background-image: url(images/ruletext_item_warning.png);
}
.vs-ruletext .content .body .property .item.disabled .status {
	display: block;
	background-image: url(images/ruletext_item_disable.png);
}
.vs-ruletext .content .body .property .item .nbsp {
	padding-left: 28px;
	cursor: default;
}
.vs-ruletext .content .body .property .item .name {
	color: red;
	white-space: nowrap;
}
.vs-ruletext .content .body .property .item .name.warning {
	text-decoration: line-through;
}
.vs-ruletext .content .body .property .item .colon {
	color: #000;
	padding-right: 4px;
}
.vs-ruletext .content .body .property .item .value {
	color: blue;
}
.vs-ruletext .content .body .property .item .value.warning {
	text-decoration: line-through;
}
.vs-ruletext .content .body .property .item .semicolon {
	color: #000;
}
.vs-ruletext .content .body .property .holder {
	border: 1px dashed red;
}
.vs-ruletext .content .body .property .helper {
	border: 1px dashed #999;
}

.vs-ruletext .content .body .textarea {
	display: none;
}
.vs-ruletext .content .body .textarea textarea {
	width: 100%;
	height: 15px;
	min-height: 15px;
	border: 1px solid #9ecaf6;
	overflow: hidden;
	line-height: 18px;
	font-size: 12px;
	font-family: "Verdana" , "Tahoma" , "Arial";
	resize: none; /* both,horizontal,vertical,none */
}
